package com.zx.feign.fallBack;


import com.zx.common.ResponseCommon;
import com.zx.common.TableId;
import com.zx.feign.SecuredGoodsClient;
import com.zx.vo.SimpleGoodsInfo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GoodsClientHystrix implements SecuredGoodsClient {
    @Override
    public ResponseCommon<List<SimpleGoodsInfo>> getSimpleGoodsInfos(TableId tableId) {
        return  new ResponseCommon<List<SimpleGoodsInfo>>(
                0,
                "default goods"
        );
    }
}
